Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] ErrorException: Undefined array key "exception" #38059

Merged
merged 1 commit into from
Jul 19, 2021
Merged

[8.x] ErrorException: Undefined array key "exception" #38059

merged 1 commit into from
Jul 19, 2021

Conversation

kekstoaster
Copy link
Contributor

@kekstoaster kekstoaster commented Jul 18, 2021

This pull request fixes the issue with calls to logging methods like Log::info in latest PHP, where non existing array keys are now an error. This happens, when no context is given, or exception is not set in context.
There is a line in FoundationServiceProvider.php
if ($event->context['exception']) {
which now fails, here should be an isset around it.

@taylorotwell taylorotwell merged commit 3bf0ec8 into laravel:8.x Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants